<?php
/**
{
    "bannerId": "INT //bannerId",
    "weight": "INT //权重数字<br>越大越靠前",
    "image": "TINYTEXT //图片建议<br>宽450×高150@image",
    "url": "VARCHAR //网址",
    "onlineTime": "DATETIME //",
    "offlineTime": "DATETIME //",
    "status": "TINYINT //状态@status; 0::待审核::@admin; 3::审核通过::@admin; 4::审核不通过::@admin; 88::删除::@admin; @noLoad; "
}
 */

class Banner extends Base
{
    
	private $bannerId= '';//bannerId
	private $weight= "0";//权重数字<br>越大越靠前
	private $image= '';//图片建议<br>宽450×高150@image
	private $url= NULL;//网址
	private $onlineTime= 'CURRENT_TIMESTAMP';//
	private $offlineTime= NULL;//
	private $status= "3";//状态@status;0::待审核::@admin;3::审核通过::@admin;4::审核不通过::@admin;88::删除::@admin;@noLoad;

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_banner';
    }
    
    public  function key(){
        return 'bannerId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return array (  0 => 'status',);
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'Banner';
    }
    
    public  function field()
    {
        return array (  'bannerId' =>   array (    0 => 'INT',    1 => 11,    2 => 'bannerId',  ),  'weight' =>   array (    0 => 'INT',    1 => 11,    2 => '权重数字<br>越大越靠前',  ),  'image' =>   array (    0 => 'TINYTEXT',    1 => 0,    2 => '图片建议<br>宽450×高150@image',  ),  'url' =>   array (    0 => 'VARCHAR',    1 => 1024,    2 => '网址',  ),  'onlineTime' =>   array (    0 => 'DATETIME',    1 => 0,    2 => '',  ),  'offlineTime' =>   array (    0 => 'DATETIME',    1 => 0,    2 => '',  ),  'status' =>   array (    0 => 'TINYINT',    1 => 4,    2 => '状态@status;0::待审核::@admin;3::审核通过::@admin;4::审核不通过::@admin;88::删除::@admin;@noLoad;',  ),);
    }


}